import Vue from "vue"
import UI from "./index.vue"

function UIfn(e) {
  const UIconstructor = Vue.extend(UI)
  let instance = new UIconstructor({
    data() {
      return {}
    },
    methods: {
      closeWindow() {
        e.$el.removeChild(instance.$el)
      },
    },
  }).$mount()
  e.$el.appendChild(instance.$el)
}

export default UIfn
